import turtle
t = turtle.Turtle()
a=int(input())
if a>5:
    print("ОШИБКА!!")
else:
    t.forward(150*a)
    t.left(90)
t.forward(100*a)
t.left(90)
t.forward(50*a)
t.left(90)
t.forward(50*a)
t.right(90)
t.forward(50*a)
t.right(90)
t.forward(50*a)
t.left(90)
t.forward(50*a)
t.left(90)
t.forward(100*a)
